package com.ziya.android.a3dmodel.course.one

import android.opengl.GLSurfaceView
import android.os.Bundle
import com.ziya.android.a3dmodel.BaseActivity
import com.ziya.android.a3dmodel.R
import com.ziya.android.a3dmodel.databinding.ActivityCourseOneBinding


class CourseOneActivity : BaseActivity<ActivityCourseOneBinding>() {
    override fun onCreated(savedInstanceState: Bundle?) {
        //必须代码设置版本
        vb.viewGlSurface.setEGLContextClientVersion(2);
        vb.viewGlSurface.setRenderer(DrawTriangleRenderer())
    }
    override fun getLayoutID(): Int {
        return R.layout.activity_course_one
    }
}